<?php get_header(); ?>
<script>
function showHint(str){
	$.get("/try/gethint.php?q="+str,function(data,status){
		$('#txtHint').html(data);
	});
}
</script>
<div id="index">
	<p>ajxa($.get)</p>


	<h3>在输入框中尝试输入字母 a:</h3>
	<form action=""> 
	输入姓名: <input type="text" id="txt1" onkeyup="showHint(this.value)" />
	</form>
	<p>提示信息: <span id="txtHint"></span></p> 
	
</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>